export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({
  sysDict: {
    sysDictList (data = {}, param = {}) {
      return request({
        url: '/dict/form/page/search?sorts=id&direction=desc&page=' + (param.page - 1) + '&size=' + param.size,
        method: 'post',
        data: data
      })
    },
    sysDictFindById (data) {
      return request({
        url: '/dict/form/findById?id=' + data.id,
        method: 'get',
        data: data
      })
    },
    sysDictUpdateById (data) {
      return request({
        url: '/dict/form/update',
        method: 'post',
        data: data
      })
    },
    sysDictInsert (data) {
      return request({
        url: '/dict/form/insert',
        method: 'post',
        data: data
      })
    },
    sysDictDeleteById (data) {
      return request({
        url: '/dict/form/delete',
        method: 'post',
        data: data
      })
    },
    sysDictRemoveByType (data) {
      return request({
        url: '/dict/dict/removeByType?type=' + data.type,
        method: 'post',
        data: data
      })
    },
    getListByType (data) {
      return request({
        url: '/dict/dict/getListByType?type=' + data.type,
        method: 'get',
        data: data
      })
    }
  }
})
